package cn.lu.dao;

import cn.lu.pojo.Section;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SectionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Section record);

    int insertSelective(Section record);

    Section selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Section record);

    int updateByPrimaryKey(Section record);

    List<Section> selectChapterId(Integer chapterId);

    int deleteByIdAndUserId(@Param(value = "sectionId") Integer sectionId, @Param(value = "userId") Integer userId);

    int updateByIdAndUserId(@Param(value = "section") Section section, @Param(value = "userId") Integer userId);
}